package com.example.grape_effect.base

import android.content.Context
import com.example.grape_effect.utils.BitmapUtil
import com.example.grape_effect.gl.common.ImageTexture

class GrapeEffect {
    companion object{
        // 这个是用来测试的纹理，index为0
        lateinit var testInTexture: ImageTexture
        lateinit var testInTexture2: ImageTexture
        lateinit var grapeContext: Context
        fun initEffect(applicationContext: Context) {
            grapeContext = applicationContext
            testInTexture = ImageTexture(
                BitmapUtil.getBitmapFormAssets("test1.jpg",
                grapeContext
            ), 0)
            testInTexture2 = ImageTexture(BitmapUtil.getBitmapFormAssets("test2.jpg",
                grapeContext
            ), 0)
        }
    }
}